<?php

/**
 * @author christian
 * @copyright 2011
 */

//echo "registrar ....";
//echo getcwd();
//echo basename(getcwd());

$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDTourGeneral/CTourTableDraw.php");
include_once("$ruta/star.php");
include_once("$ruta/view/CDrawMenuTour.php");
include_once("$ruta/MDTourGeneral/CTourEditDraw.php");
include_once("$ruta/MDTourGeneral/CDrawPageReg.php");

if (!isset($_GET['codigo'])) {$_GET['codigo'] = "NULL"; }
if (!isset($_GET['default'])) {$_GET['default'] = "NULL"; }

$id=$_GET['codigo'];
$default=$_GET['default'];
//default(1) es modificar // default (0) es registrar 



$idGuide =$_GET['codigo'];


$menu = new CDrawMenuTour;
$edit = new CTourEditDraw;


$items=array("Nuevo Tour"=>"CSmallDefinePack.php","Nuevo paquete"=>"CTourEdit.php?codigo=159&default=2","Ver paquetes"=>"/viventura/MDTour/","Otra"=>"g");

$menu->setMenu($items);
$menu->rigth_side_begin();
$menu->DrawDivAdBegin("content_area_user_title","1");echo "<h1>Destino Sur</h1>";
$menu->DrawDivAdEnd();


$action="CRegistroTour.php";$name="formulario_registro";$method="post";$NAME="";
$edit ->DrawHead($action,$name,$method,$NAME);

        echo "<h2>Datos generales</h2>";
    $val_cguide = array(":required",":required",":integer");
    $cguide=array("FirstNamGui"=>"Nombres","LastNamGui"=>"Apellidos","DocNumGui"=>"Documento");
    $edit->DrawTextFillBox("",$cguide,"guidetc","idGuide",$idGuide,$val_cguide);
    

        echo "<h2>Datos de reserva</h2>";
    $val_bguide = array(":integer",":integer",":integer");
    $bguide=array("LimBloGui"=>"Límite bloqueo","LimResGui"=>"Límite de reserva","PricPerSer"=>"Precio del servicio");
    $edit->DrawTextFillBox("",$bguide,"guidetc","idGuide",$idGuide,$val_bguide);    
    
        echo "<h2>Datos de contacto</h2>";
    $val_tguide = array(":integer",":integer",":email",":url");
    $tguide=array("TelGui"=>"Telefono","FaxGui"=>"Fax","MailGui"=>"Correo electrónico","WebPagGui"=>"Página web");
    $edit->DrawTextFillBox("",$tguide,"guidetc","idGuide",$idGuide,$val_tguide);
    
    CDrawPageReg::getInstance()->DrawSubmmit("Actualizar");


$edit ->DrawFoot();
$menu->rigth_side_end();
include_once("$ruta/elements/foot.tpl");


?>